package com.salelogistics.system.api;


import com.salelogistics.common.core.constant.ServiceNameConstants;
import com.salelogistics.common.core.web.domain.AjaxResult;
import com.salelogistics.common.core.web.page.TableDataInfo;
import com.salelogistics.system.api.domain.BasLot;
import com.salelogistics.system.api.factory.RemoteBasLotFallBackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 标段Service接口
 * 
 * @author ruoyi
 * @date 2023-07-09
 */
@FeignClient(contextId = "remoteBasLotService",
        value = ServiceNameConstants.BASIC_SERVICE,
        fallbackFactory = RemoteBasLotFallBackFactory.class)
public interface RemoteBasLotService
{
    /**
     * 查询标段
     * 
     * @param id 标段主键
     * @return 标段
     */
    @GetMapping(value = "lot/{id}")
    public AjaxResult selectBasLotById(@PathVariable("id") Long id);

    /**
     * 查询标段列表
     * 
     * @param basLot 标段
     * @return 标段集合
     */
    @GetMapping(value = "lot/listVo")
    public TableDataInfo selectBasLotList(@RequestParam("basLot")BasLot basLot);
}
